<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:79:"E:\web\project\baojia\wwwww\public/../application/admin\view\bankuai\yedit.html";i:1536769076;s:70:"E:\web\project\baojia\wwwww\application\admin\view\layout\default.html";i:1529292885;s:67:"E:\web\project\baojia\wwwww\application\admin\view\common\meta.html";i:1535990037;s:69:"E:\web\project\baojia\wwwww\application\admin\view\common\script.html";i:1533222223;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/public/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/public/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<link href="/public/assets/js/uploadify/uploadify.css" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/public/assets/js/html5shiv.js"></script>
  <script src="/public/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
<script src="/public/assets/libs/jquery/dist/jquery.min.js"></script>
<script src="/public/assets/js/uploadify/jquery.uploadify.min.js"></script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !$config['fastadmin']['multiplenav']): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" method="POST" action="<?php echo url('ysave'); ?>">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">页面名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="name" value="<?php echo (isset($data['name']) && ($data['name'] !== '')?$data['name']:''); ?>" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">页面描述:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea type="text" name="des" class="form-control"><?php echo (isset($data['des']) && ($data['des'] !== '')?$data['des']:''); ?></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">前台/后台:</label>
        <div class="col-xs-12 col-sm-8">
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 3px;" name="admin_home" value="1" <?php if((!empty($data)) AND $data['admin_home'] == 1): ?>checked<?php endif; ?> type="radio">前台</label>
            <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style="position: relative;top: 3px;" name="admin_home" value="2" <?php if((!empty($data)) AND $data['admin_home'] == 2): ?>checked<?php endif; ?> type="radio">后台</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所属板块:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" name="plate_id" >
              <?php if(is_array($plate) || $plate instanceof \think\Collection || $plate instanceof \think\Paginator): $i = 0; $__LIST__ = $plate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <option value="<?php echo $vo['id']; ?>" <?php if(((!empty($data)) AND $vo['id'] == $data['plate_id']) OR ($vo['id'] == $plate_id)): ?>selected<?php endif; ?>><?php echo $vo['name']; ?></option>
                <?php if(is_array($vo['son']) || $vo['son'] instanceof \think\Collection || $vo['son'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['son'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;?>
                 <option value="<?php echo $son['id']; ?>" <?php if(((!empty($data)) AND $son['id'] == $data['plate_id']) OR ($son['id'] == $plate_id)): ?>selected<?php endif; ?>>---<?php echo $son['name']; ?></option>
                <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; ?> 
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">应用类型:</label>
        <div class="col-xs-12 col-sm-8">
            <?php if(is_array($app_type) || $app_type instanceof \think\Collection || $app_type instanceof \think\Paginator): $i = 0; $__LIST__ = $app_type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> 
              <label style="font-weight: normal;margin-right: 15px;cursor: pointer;"><input style=" position: relative;top: 2px;" name="type_id[]" value="<?php echo $vo['id']; ?>" <?php if((!empty($data)) AND in_array($vo['id'],$data['type_id'])): ?>checked<?php endif; ?> type="checkbox"><?php echo $vo['name']; ?></label>
             <?php endforeach; endif; else: echo "" ;endif; ?>  
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">风格图:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-12">
                <div class="fixed-table-body">
                    <table id="table" class="table table-striped table-bordered table-hover" width="100%">
                        <thead>
                            <tr>
                                <th style="text-align: center; vertical-align: middle; ">
                                    <div class="th-inner ">编号</div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; ">
                                    <div class="th-inner ">类型</div>
                                </th>
                                <th style="text-align: center; vertical-align: middle; ">
                                    <div class="th-inner ">操作</div>
                                </th>
                            </tr>
                        </thead>
                        <tbody data-listidx="0">
                            <tr data-index="0">
                                <td style="text-align: center; vertical-align: middle;">
                                    s0001
                                </td>
                                <td style="text-align: center; vertical-align: middle;">
                                    页面风格图
                                </td>
                                <td style="text-align: center; vertical-align: middle;">
                                    <a href="javascript:;" class="btn btn-xs btn-success">
                                        查看 
                                    </a>
                                    <a href="javascript:;" class="btn btn-xs btn-success">
                                        编辑
                                    </a>
                                    <a href="javascript:;" class="btn btn-xs btn-danger">
                                        删除
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12" style="text-align: center;">
                <a class="btn btn-xs btn-success my-upload" href="javascript:;">上传</a>
            </div>
        </div>
    </div>-->


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
             <input type="hidden" name="id" value="<?php echo (isset($data['id']) && ($data['id'] !== '')?$data['id']:''); ?>" class="form-control"/>
            <button type="submit" class="btn btn-success"><?php echo __('OK'); ?></button>
        </div>
    </div>
</form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
<script src="/public/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/public/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>